import request from '@/utils/request'

/**
 * @description: 获取产品类别清单
 * @param {*} params
 * @return {*}
 */
export function getProductClass(params) {
  return request({
    url: '/product/class/list',
    params
  })
}

/**
 * @description: 新增产品类别
 * @param {*} data
 * @return {*}
 */
export function addProductClassItem(data) {
  return request({
    url: '/product/class/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新产品类别
 * @param {*} data
 * @return {*}
 */
export function updateProductClassItem(data) {
  return request({
    url: '/product/class/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除产品类别
 * @param {*} data
 * @return {*}
 */
export function deleteProductClassItem(data) {
  return request({
    url: '/product/class/delete',
    method: 'post',
    data
  })
}
